package top.lrshuai.websocket.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import top.lrshuai.websocket.user.service.IDoService;

@Component
public class TestTask {

    @Autowired
    private IDoService doService;

    @Scheduled(cron = "0/30 * * * * ?")
    public void test(){
        System.out.println("!!!");
        doService.testTransactional();
    }
}
